// ActionScript file

import mx.managers.CursorManager;
import flash.events.*;

// Embed the cursor symbol.
[Embed(source="assets/crossIcon_new.png")]
private var CrossCursorSymbol:Class; 

[Embed(source="assets/buildIcon.png")]
private var buildCursorSymbol:Class; 



private var cursorID:Number = 0;
  
private function setCursor(cursorType:String):void 
{
	if (cursorType == "normal") {
		CursorManager.removeAllCursors();
		CursorManager.removeBusyCursor();
	} else if (cursorType == "busy") {
		CursorManager.removeAllCursors();
		CursorManager.setBusyCursor();
	} else if (cursorType == "custom") {
		CursorManager.removeAllCursors();                    
		cursorID = CursorManager.setCursor(CrossCursorSymbol);
	}
	else if(cursorType == "build")
	{
		CursorManager.removeAllCursors();
		cursorID = CursorManager.setCursor(buildCursorSymbol);
	}
}


//EOF.....